{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
<h1>	
		移动端
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb1}
		</small>
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			提现申请
		</small>
	</h1>
</div>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table id="table" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						
						<th>姓名</th> 
						<th>电话</th> 
						<th>提现金额</th> 
						<th>收款银行</th> 
						<th>收款账户</th> 
						<th>支付宝账户</th>	
						<th>申请时间</th>					
						<th>状态</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>		
							<td>{$v.name}</td>
							<td>{$v.tel}</td>
							<td>{$v.cash}</td>
							<td>{$v.bank_name}</td>
							<td>{$v.bank_account}</td>
							<td>{$v.alipay}</td>
							
							
							<td><?php echo date('Y-m-d',$v['create_time']); ?></td>
							
							<td>
								{switch name="v.status"}
								    {case value="0"}<span class="red bold">未审核</span> {/case}
								{/switch}
							</td>
							<td>
								<a class="pass" href="{:url('CashBackend/pass_cash_apply',array('id'=>$v['aca_id'],'agent_id'=>$v['agent_id'],'cash'=>$v['cash'],'uid'=>$v['uid']))}">通过</a>
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
						<tr>
							<td colspan="20" class="page">总计 {$list->total()|default="0"} 个申请</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>
	$('.pass').click(function(){
			var f=confirm('确认要执行该操作吗？');
			if(f==false){
				return false;
			}
	});
</script>
{/block}